package com.example.amqp.reciver;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author laoma
 * @create 2021-04-13 0:16
 */
@Component
public class DirectReciver {
    @RabbitListener(queues = "javaboy-queue")
    public void handler(String msg){
        System.out.println("msg = " + msg);
    }
}
